package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 药品表
 * </p>
 *
 * @author 刘岩
 * @since 2022-10-10
 */
@Getter
@Setter
@TableName("tb_medicine")
@ApiModel(value = "Medicine对象", description = "药品表")
public class Medicine implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键排序号")
      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("药品标题")
      private String title;

      @ApiModelProperty("药品图片")
      private String image;

      @ApiModelProperty("药品分类(0:非处方药/1:处方药)")
      private String classify;

      @ApiModelProperty("药品规格")
      private String specs;

      @ApiModelProperty("发布医生ID")
      private Long doctorId;

      @ApiModelProperty("发布状态(0:未发布/1:已发布)")
      private String status;

      @ApiModelProperty("药品详情")
      private String detail;

      @ApiModelProperty("收藏数量")
      private Long collectNum;

      @ApiModelProperty("创建时间")
      @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty("更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;

      @ApiModelProperty("是否删除：0：未删除 1：已删除")
      @TableLogic
      private String isDeleted;
}
